package experiment2;

public class Chairment {
	private static Chairment instance;//用来唯一（static）保存主席对象的地址
	private String name;//主席对象名字属性

	private Chairment(String name) {
		this.name = name;
	}

	public static Chairment getInstance() {
		if (instance == null)
			instance = new Chairment("毛主席");//仅在程序第一次调用getInstance方法时创建对象仅执行一次
		return instance;
	}
}
//老师好！之前未学javaFx这次使用命令行客户端进行提交